<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    *{
        padding: 0;
        margin: 0;
    }
    .container{
        margin: 50px  auto;
        width: 600px;
    }
    .container  div{
        margin-top: 30px;
    }
    .container  div span{
        color: brown;
        background-color: bisque;
    }
    .box4{
        width: 1000px;
         height: 300px;
         background-color: darkred;
         font-size: 40px;
         display: none;
         line-height: 130px;
         margin-left: -200px;
    }
</style>
<body>
    <div  class="container">
    <h2>这里这里这里是这里，哪里哪里那是哪里</h2>
    <div  class="box">你是谁？ 奥原来你是：<span></span></div>
    <div  class="box2">你是密码是什么？ 快告诉我叭~我的密码是：<span></span></div>
    <div  class="box3">我还有多少钱？ 你的银行卡余额： <span></span>百万</div>
    <div  class=box4><marquee   behavior="alternate"  scrollamount="10px">  恭喜你成为我行<mark>超级大会员</mark>，享受<mark>超级VIP</mark>待遇!!!</marquee></div>
 </div>
    <script src="./cookieUtil.js"></script>
    <script>
        let span1=document.querySelector('.box>span')
        let span2=document.querySelector('.box2>span')
        let span3=document.querySelector('.box3>span')
        let box4=document.querySelector('.box4')
        function get(){
            span1.innerHTML=   getCookie('user')
            span2.innerHTML=   getCookie('pass')
            span3.innerHTML=   getCookie('cart')
            if(getCookie('cart')>1000){
                  box4.style.display='block'
            }
        }
        get()
    </script>
</body>
</html>